﻿@model Stardust.Models.EmpleadoBean
@{
    ViewBag.title = "Reporte de Asistencia por empleado";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/custom.js")" type="text/javascript"></script>

@if ( !String.IsNullOrEmpty(ViewBag.error)) { 
    <div class="nNote nWarning hideit">
        <p><strong>AVISO: </strong>@ViewBag.error</p>
    </div>
}
@using (Html.BeginForm("indice", "ReporteAsistencia", FormMethod.Post,  new { @class = "form" } ))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class = "widget" >
            <div class = "title" ><h6> Reporte de Asistencia  </h6></div>

            @*<div class = "formRow" >
                @Html.LabelFor( model => model.nombreEmpleado )
                <div class = "formRight" > @Html.DropDownListFor( model => model.nombreEmpleado , new SelectList( ViewBag.empleados , "ID" , "nombres" ) , "Elija un usuario... " ) </div>
                <div class = "clear" ></div>
            </div>*@

            <div class = "formRow" >                
                
                <div class = "formRight" > @Html.DropDownListFor(model => model.ID, new SelectList(ViewBag.empleados, "ID", "nombreEmpleado"), "Elija un usuario... ") </div>
                
                
                <div class = "clear" ></div>
            </div>
            @*
            <div class = "formRow" >
              <div class = "formRight" > Todos los Empleados: @Html.CheckBoxFor(model => model.Value, true)
            <div class = "clear" ></div>
            </div>
            *@
            @*
            <div class = "formRow" >                
                
                <div class = "formRight" > @Html.DropDownListFor(model => model.ID, new SelectList(ViewBag.empleados, "ID", "nombreEmpleado"), "Elija un usuario... ") </div>
                
                
                <div class = "clear" ></div>
            </div>
            *@
            <div class = "formRow" >
                <label>Rango-Inicio</label>
                <div class = "formRight" >
                    <input type = "text" id = "fechaIni" name = "fechaIni" class = "datepicker" />
                </div>
                <div class = "clear" ></div>
            </div>

          <div class = "formRow" >
                <label>Rango-Fin</label>
                <div class = "formRight" >
                    <input type = "text" id = "fechaFin" name = "fechaFin" class = "datepicker" />
                </div>
                <div class = "clear" ></div>
            </div>

        </div>
        <p>
            <input class = "redB" type="submit" value="Generar" />
        </p>
    </fieldset>
}
<script>
    var X = $("#ID")  ;
    X.append("<option value = 0 selected >Todos</option>");
</script>



<p></p><p></p><p></p><p></p><p></p><p></p><p></p>